<template>
  <div class="register">
    <div class="menu">
      <Menu :isCollapse="isCollapse"></Menu>
      <div class="content" :class="{ small: isCollapse }">
        <Content @changeShow="changeShow" :isCollapse="isCollapse"></Content>
      </div>
    </div>
  </div>
</template>

<script>
import Menu from "./menu/Appmenu.vue";
import Content from "./content/Appcontent.vue";
export default {
  components: {
    Menu,
    Content,
  },
  data() {
    return {
      isCollapse: false,
    };
  },
  methods: {
    changeShow() {
      this.isCollapse = !this.isCollapse;
    },
  },
};
</script>

<style lang="less" scoped>
.register {
  .menu {
    background: #112f50;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
  }
  .content {
    padding-left: 200px;
  }
  .small {
    padding-left: 64px;
  }
}
</style>
